<layout name="../../../Resource/master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">属性列表管理</a></li>
    <li><a href="#">属性列表</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">属性列表</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">属性列表</header>
            <div class="panel-body">
                <div class="container-fluid">
                    <div class="row-fluid">
                        <div class="span12">
                            <table class="table table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>
                                        属性ID
                                    </th>
                                    <th>
                                        属性名称
                                    </th>
                                    <th>
                                        属性类别
                                    </th>
                                    <th>
                                        属性值
                                    </th>
                                    <th>
                                        操作
                                    </th>
                                </tr>
                                </thead>
                                <tbody>
                                <foreach name='typeatrModelData' item='v'>
                                    <tr class="success">
                                        <td>
                                            {$v.taid}
                                        </td>
                                        <td>
                                            {$v.name}
                                        </td>
                                        <td>
                                            <if condition='$v["type"] == 1'>规格<else/>属性</if>
                                        </td>
                                        <td>
                                            {$v.value}
                                        </td>
                                        <td>
                                            <a href="{:U('TypeAttr/attributeAdd',['tid'=>$_GET['tid'],'taid'=>$v['taid']])}" class="btn btn-warning"><i class="icon-pencil icon-white"></i>修改</a>
                                            <a href="{:U('TypeAttr/attrDel',['taid'=>$v['taid']])}" class="btn btn-danger"><i class="icon-trash icon-white"></i>删除</a>
                                        </td>
                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                        </div>
                        <div class="pagination pagination-sm pull-right">
                                    <a href="">{$page}</a>
                        </div>
                    </div>
                    <a href="{:U('TypeAttr/attributeAdd',['tid'=>$_GET['tid']])}"  class="btn btn-primary"><i class="icon-pencil icon-white"></i>添加属性</a>
                </div>
            </div>
        </section>
    </div>
</div>